// 当前的index文件对所有的api接口同意管理
import request from "./request";
import {methods} from "babel-plugin-transform-runtime/lib/definitions";

// 三级联动接口--/api/product/getBaseCategoryList   get请求
// export const reqCategoryList =()=>{
//    // 发请求
//   // axios发送请求返回的是promise对象--可以简化
//  return  request({url:'/product/getBaseCategoryList',method:'get'})
// }
// 简化写
// export const reqCategoryList =()=>request({url:'/api/product/getBaseCategoryList',method:'get'})
export const reqCategoryList = () => request({url: '/api/list', method: 'get'});
// 获取手机号验证码   http://gmall-h5-api.atguigu.cn/api/user/passport/sendCode/phone
//api/user/passport/sendCode/{phone}  get
export const reqCode = ()=>request({url:'api/cart/cartList',method:'get'});




